<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view class="title">SecCenter</view>
			<view class="right"></view>
		</view>
		<image class="bg" src="/static/img/safebg.png"></image>
		<view class="safe_care">Guarding your travel safety with care</view>
		<view class="boxs">
			<view class="small_box">
				<image class="img" src="/static/img/warnphone.png"></image>
				<view>
					<view>Emergency</view>
					<view id="goaddit">Go add it</view>
				</view>
			</view>
			<view class="small_box">
				<image class="img" src="/static/img/police.png"></image>
				<view>
					<view>Police</view>
					<view id="alarm">997 alarm</view>
				</view>
			</view>
		</view>
		<view class="content">
			<view class="content_title">Travel safety tips</view>
			<view class="text">1.Introduction copy of
				tr11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111avel
				safety tips,Introduction copy of </view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 57rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}

	.bg {
		z-index: -1;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 429rpx;
	}

	.safe_care {
		margin: 74rpx 0rpx 46rpx 40rpx;
		width: 295rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 28rpx;
	}

	.boxs {
		width: 92%;
		margin: 0rpx auto 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.small_box {
		width: 330rpx;
		height: 160rpx;
		background: #FFFFFF;
		box-shadow: -10rpx -1rpx 50rpx 0rpx rgba(55, 55, 55, 0.08);
		border-radius: 30rpx;
		display: flex;
		align-items: center;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
	}

	.img {
		margin: 0rpx 20rpx 0rpx 30rpx;
		width: 58rpx;
		height: 58rpx;
	}

	#goaddit {
		margin-top: 15rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #33BA78;
	}

	#alarm {
		margin-top: 15rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 24rpx;
		color: #1E1E1E;
	}

	.content {
		box-sizing: border-box;
		padding: 38rpx 30rpx;
		margin: 0rpx auto;
		width: 92%;
		max-height: 800rpx;
		overflow: auto;
		background: #FFFFFF;
		box-shadow: -10rpx -1rpx 50rpx 0rpx rgba(55, 55, 55, 0.08);
		border-radius: 30rpx;
		white-space: pre-wrap;
		word-wrap: break-word;
	}

	.content_title {
		font-family: Mont;
		font-weight: bold;
		font-size: 36rpx;
	}

	.text {
		font-family: Mont;
		font-weight: bold;
		font-size: 28rpx;
		line-height: 36rpx;
	}
</style>